home *** CD-ROM | disk | FTP | other *** search
/ Shareware Super Platinum 8 / Shareware Super Platinum 8.iso / mac / PROGTOOL / FGL304C.ZIP;1 / EXC.ARJ / FGDOC / EXAMPLES / C / 07-06.C < prev    next >
Encoding:
C/C++ Source or Header  |  1994-01-24  |  904 b   |  49 lines

  1. #include <fastgraf.h>
  2.  
  3. void main(void);
  4.  
  5. void main()
  6. {
  7.    int old_mode;
  8.  
  9.    old_mode = fg_getmode();
  10.    fg_setmode(18);
  11.    fg_setcolor(9);
  12.    fg_fillpage();
  13.    fg_setcolor(14);
  14.  
  15.    fg_move(0,0);
  16.    fg_justify(-1,1);
  17.    fg_print("Fastgraph",9);
  18.    fg_move(320,0);
  19.    fg_justify(0,1);
  20.    fg_print("Fastgraph",9);
  21.    fg_move(639,0);
  22.    fg_justify(1,1);
  23.    fg_print("Fastgraph",9);
  24.  
  25.    fg_move(0,240);
  26.    fg_justify(-1,0);
  27.    fg_print("Fastgraph",9);
  28.    fg_move(320,240);
  29.    fg_justify(0,0);
  30.    fg_print("Fastgraph",9);
  31.    fg_move(639,240);
  32.    fg_justify(1,0);
  33.    fg_print("Fastgraph",9);
  34.  
  35.    fg_move(0,479);
  36.    fg_justify(-1,-1);
  37.    fg_print("Fastgraph",9);
  38.    fg_move(320,479);
  39.    fg_justify(0,-1);
  40.    fg_print("Fastgraph",9);
  41.    fg_move(639,479);
  42.    fg_justify(1,-1);
  43.    fg_print("Fastgraph",9);
  44.    fg_waitkey();
  45.  
  46.    fg_setmode(old_mode);
  47.    fg_reset();
  48. }
  49.